#ifndef LOADERTHREAD_H
#define LOADERTHREAD_H

#include <QObject>
#include <QStringList>
#include <QDir>
#include <QFileInfoList>

#include "safequeue.h"
#include "abstractthread.h"
#include "BlobAnalysis.h"

class LoaderThread : public AbstractThread
{
    Q_OBJECT
public:
    LoaderThread(SafeQueue* queue, QObject *parent = nullptr);
    ~LoaderThread();

    // 设置图片文件夹路径
    void setImagePath(const QString& path);

protected:
    void run() override;

signals:
    void totalCountUpdated(const int count);

private:
    QStringList imageFiles_;            // 图片文件列表
};

#endif // LOADERTHREAD_H
